package cn.iocoder.yudao.module.ad.effect.convert;

import cn.iocoder.yudao.module.ad.effect.dal.dataobject.AdEffectRecordDO;
import cn.iocoder.yudao.module.ad.effect.vo.AdminAdEffectRecordVO;
import cn.iocoder.yudao.module.ad.effect.vo.AppAdEffectRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/03/04
 */
@Mapper
public interface AdEffectRecordConvert {

    AdEffectRecordConvert INSTANCE = Mappers.getMapper(AdEffectRecordConvert.class);

    @Mapping(target = "plan", ignore = true)
    @Mapping(target = "user", ignore = true)
    AdminAdEffectRecordVO convert(AdEffectRecordDO bean);

    @Mapping(target = "plan", ignore = true)
    AppAdEffectRecordVO convert2(AdEffectRecordDO bean);

    List<AdminAdEffectRecordVO> convertList(List<AdEffectRecordDO> list);

}
